FROM bitnami/java:1.8.412-9

LABEL maintainer="zhlking@cnklog.com"

RUN ln -snf /usr/share/zoneinfo/PRC /etc/localtime && \
    echo PRC > /etc/timezone && \
    /usr/sbin/useradd -d /tmp -u 1100 unimms

USER unimms

ADD target/*jar /app.jar

VOLUME /logs

ENV JAVA_OPTS="${JAVA_OPTS} ${JAVA_OPT}"
ENV PARAMS=${PARAMS}

# ENTRYPOINT ["sh","-c","java $JAVA_OPTS -jar /app.jar $PARAMS"]
ENTRYPOINT ["sh","-c","sleep 3600"]